<?php
/**
 * Created by PhpStorm.
 * User: wanglong
 * Date: 2017/3/29
 * Time: 14:54
 */

namespace app\wechat\controller;

use app\models\Bases;

class Review extends Base{

    /**
     * 精彩回顾数据接口
     * @return \think\response\Json
     */
    public function reviewList(){
        $play_model = new Bases('play');
        try {
            $result = $play_model -> selectData([], ['create_time','image' ,'image_path']);
            if(empty($result)){
                throw new \LogicException('查找数据失败', 1023);
            }
            return json(self::formatSuccessResult($result));
        } catch (\Exception $e) {
            return json(self::formatResult($e->getCode(), $e->getMessage()));
        }
    }
}